package com.ssy.lingxi.settle.accounts.controller;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.dto.response.PlatformSettlementAllInPayVO;
import com.ssy.lingxi.settle.accounts.service.IPlatformSettlementService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 结算服务平台Feign接口
 * @author 彭冬冬
 * @date 2021/12/21
 **/
@RestController
@RequestMapping("/settle/accounts/platform/feign")
public class PlatformSettlementFeignController {

    @Resource
    private IPlatformSettlementService service;

    @RequestMapping(value = "/get/platform/settlement", method = RequestMethod.GET)
    public Wrapper<PlatformSettlementAllInPayVO> getPlatformSettlementByDetailPaymentId(@RequestParam Long paymentId) {
        return service.getPlatformSettlementByDetailPaymentId(paymentId);
    }
}
